package ooday05;
/** static演示 */
public class StaticDemo {
    public static void main(String[] args) {
        StaticVar o1 = new StaticVar();
        o1.show();
        StaticVar o2 = new StaticVar();
        o2.show();
        StaticVar o3 = new StaticVar();
        o3.show();
        System.out.println(StaticVar.b);//常常通过类名打点来访问


        //静态块
        StaticBlock s = new StaticBlock();
        StaticBlock s1 = new StaticBlock();
        StaticBlock s2 = new StaticBlock();

        //静态方法
        StaticMethod.test();
    }
}
